package priv.util;

import java.io.Serializable;
import java.util.Map;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;

public class Man implements Serializable{

	@Value("#{dsz.name}")
	private String name;
	
//	@Value("#{${man.age} + 40}")
	@Value("#{dsz.name.length()}")
	private int age;
	
	@Value("#{T(System).getProperty('os.version') matches '.+'}")
	private Boolean hasEmail;
	
//	@Autowired
//	@Qualifier("dsz")
	@Value("#{dsz}")
	private Map<String,Object> map;
	
	

	public Map<String, Object> getMap() {
		return map;
	}

	public void setMap(Map<String, Object> map) {
		this.map = map;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private Set<String> lists;

	public Set<String> getLists() {
		return lists;
	}

	public void setLists(Set<String> lists) {
		this.lists = lists;
	}

	

	public Boolean getHasEmail() {
		return hasEmail;
	}

	public void setHasEmail(Boolean hasEmail) {
		this.hasEmail = hasEmail;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "Man [name=" + name + ", age=" + age + ", hasEmail=" + hasEmail + ", map=" + map + ", lists=" + lists
				+ "]";
	}



	
	
	
	
	
}
